<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul id="parent-list">
        <li><a href="javascript:;" class="my_link">超链接一</a></li>
        <li><a href="javascript:;" class="my_link">超链接二</a></li>
        <li><a href="javascript:;" class="my_link">超链接三</a></li>
    </ul>
    <script>
        window.onload = function() {
            var parentNode = document.getElementById("parent-list");
            var aNodes = parentNode.getElementByTagName("a");
            for (var i = 0, l = aNodes.length; i < l; i++) {

                aNodes[i].onclick = function() {
                    console.log('我是超链接 a 的单击相应函数');
                }
            }
        }
    </script>
</body>

</html>